#ifndef SAMPLEWINDOW_HH
#define SAMPLEWINDOW_HH

#include "Window.h"

#include <QtGui>
#include "NewParameters.h"

class SampleWindow : public Window
{
  Q_OBJECT

private:
  NewParameters tempParams,oldParams;
  QPushButton *reset;
  QDoubleSpinBox *alpha,*kPhi,*kTheta;
  QLineEdit *ms,*k,*surface,*thickness,*upExchange,*downExchange;
  QRadioButton *layer1,*layer2,*layer3;
  QDoubleSpinBox *mx,*my,*mz,*selfX,*selfY,*selfZ,*mutualX,*mutualY,*mutualZ,*initialAngle;
  QCheckBox *frozen;
  QComboBox *polType;
  QDoubleSpinBox *polarization,*qminus,*qplus,*b0,*b1;
  QStackedWidget *polWidget;

public:
  SampleWindow();

  virtual ~SampleWindow();
  void clearParameters();
  void saveLayer(int layerNumber);
  void loadParameters(NewParameters newParams);
  NewParameters getParameters(NewParameters params);

  void initializeWidgets();

public slots:
  void disableLayers(int choice);
  void resetParameters();
  void loadLayer();
  void saveLayer1();
  void saveLayer2();
  void saveLayer3();
};

#endif
